#!/bin/bash
#初始化配置 运行方法 ./ts.sh

#网络运行shell
#安装curl程序  sudo apt install curl
#运行 curl https://gitee.com/zhengtiesheng/shell/raw/master/ts.sh | sudo bash
#卸载程序:sudo apt-get remove ...

echo "-----------初始化配置-----------"

echo "-----------更新ubuntu-----------"
sudo apt-get install update -y

echo "------------安装vim-------------"
sudo apt-get install vim -y

echo "-------------安装SSH------------"
sudo apt-get install openssh-server -y

echo "-----------安装.netcore2.2-----------"
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb

sudo add-apt-repository universe 
sudo apt-get install apt-transport-https -y
sudo apt-get update 
sudo apt-get install dotnet-sdk-2.2 -y

echo "--------重启计算机 sudo reboot ------"
